import {getData} from "./http";

//分类列表
export const selectCategories = (data) =>getData('/webserver/category/categoryList', data);

//一级分类最新作品
export const selectFirstLevelNewWorks = (data) =>getData('/webserver/category/categoryNewList', data);

//一级分类热门作品
export const selectHotLevelHotWorks = (data) =>getData('/webserver/category/categoryHotList', data);

//二级分类
export const selectSecondLevelCategory = (data) => getData('/webserver/category/listSecondLevelCategories', data);

export const getAllCategory = (currentPage,size,data) => getData(`/webserver/category/getAllCategory?currentPage=${currentPage}&size=${size}`, data);
